package org.springblade.upgrade.config.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.upgrade.config.entity.PackageBackendConfig;
import org.springblade.upgrade.config.model.PackageBackendConfigBean;

import java.util.List;

/**
 * 服务
 *
 * @Version 1.0
 */
public interface IPackageBackendConfigService extends BaseService<PackageBackendConfig> {

    boolean addData(PackageBackendConfigBean param) throws Exception;

    boolean updateData(PackageBackendConfigBean param) throws Exception;

    boolean deleteData(PackageBackendConfigBean param) throws Exception;

    PackageBackendConfigBean findById(Long id);

    PackageBackendConfigBean findBySpec(PackageBackendConfigBean param);

    List<PackageBackendConfigBean> findListBySpec(PackageBackendConfigBean param);

    IPage<PackageBackendConfigBean> findPageBySpec(IPage<PackageBackendConfigBean> page, PackageBackendConfigBean param);
}
